Skip to main content

playRate

Type

property

Summary

Specifies how fast a player plays a movie.

Syntax

set the playRate of <player> to <rate>

Description

Use the playRate property to speed up or slow down playback of a movie or sound.

The playRate is the ratio between the desired playback rate and the natural rate of the movie or sound. A playRate of 1 plays the movie or sound at normal speed; a playRate greater than one speeds up the playback; a playRate less than one slows down the playback.

A negative playRate plays the movie or sound backward.

If the playRate is zero, the movie or sound is paused. Note:Setting the playRate to a negative value is not supported on Windows.

Examples

set the playRate of player 17 to 0.5 -- half-speed

glossary: property, real number

keyword: player

property: callbacks, looping, startTime

command: play

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?